package types

// 创建请求参数
type OrderCreateRequest struct {
	Platform   uint8  `json:"platform,optional" form:"platform,optional"`
	Username   string `json:"username,optional" form:"username,optional"`
	AddressId  uint64 `json:"address_id,optional" form:"address_id,optional"`
	GoodsSkuId uint64 `json:"goods_sku_id,optional" form:"goods_sku_id,optional"`
	Num        uint8  `json:"num,optional" form:"num,optional"`
}

// 支付请求参数
type OrderPayRequest struct {
	Oid            uint64 `json:"oid,optional" form:"oid,optional"`
	PayChannel     uint8  `json:"pay_channel,optional" form:"pay_channel,optional"`
	PayChannelNote uint64 `json:"pay_channel_note,optional" form:"pay_channel_note,optional"`
}

// 查询请求参数
type QueryOrderRequest struct {
	Oid             uint64 `json:"oid,optional" form:"oid,optional"`
	Oids            string `json:"oids,optional" form:"oids,optional"`
	Platform        uint8  `json:"platform,optional" form:"platform,optional"`
	Uid             uint64 `json:"uid,optional" form:"uid,optional"`
	Uids            string `json:"uids,optional" form:"uids,optional"`
	Username        string `json:"username,optional" form:"username,optional"`
	GoodsName       string `json:"goods_name,optional" form:"goods_name,optional"`
	PayChannel      uint8  `json:"pay_channel,optional" form:"pay_channel,optional"`
	IsDelete        string `json:"is_delete,optional" form:"is_delete,optional"`
	Status          string `json:"status,optional" form:"status,optional"`
	StartCreateTime string `json:"start_create_time,optional" form:"start_create_time,optional"`
	EndCreateTime   string `json:"end_create_time,optional" form:"end_create_time,optional"`
	SortField       string `json:"sort_field,optional" form:"sort_field,optional"`
	SortType        string `json:"sort_type,optional" form:"sort_type,optional"`
	Page            uint8  `json:"page,optional" form:"page,optional"`
	PageSize        int8   `json:"page_size,optional" form:"page_size,optional"`
}
